<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>聪慧科技 | 用户管理</title>
<link rel="stylesheet" href="../css/style.default.css" type="text/css" />
<script type="text/javascript" src="../js/plugins/jquery-1.7.min.js"></script>
<script type="text/javascript" src="../js/plugins/jquery-ui-1.8.16.custom.min.js"></script>
<script type="text/javascript" src="../js/plugins/jquery.cookie.js"></script>
<script type="text/javascript" src="../js/plugins/jquery.uniform.min.js"></script>
<script type="text/javascript" src="../js/plugins/jquery.validate.min.js"></script>
<script type="text/javascript" src="../js/plugins/jquery.tagsinput.min.js"></script>
<script type="text/javascript" src="../js/plugins/charCount.js"></script>
<script type="text/javascript" src="../js/plugins/ui.spinner.min.js"></script>
<script type="text/javascript" src="../js/plugins/chosen.jquery.min.js"></script>
<script type="text/javascript" src="../js/custom/general.js"></script>
<script type="text/javascript" src="../js/custom/forms.js"></script>

<!--[if IE 9]>
    <link rel="stylesheet" media="screen" href="css/style.ie9.css"/>
<![endif]-->
<!--[if IE 8]>
    <link rel="stylesheet" media="screen" href="css/style.ie8.css"/>
<![endif]-->
<!--[if lt IE 9]>
	<script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script>
<![endif]-->
</head>

<body class="withvernav">
<div class="bodywrapper">
    <div th:replace="~{common/top::top}"></div>
  
  <div class="vernav2 iconmenu">
    <ul>
      <li class="current"><a href="#userManage" class="editor">奖惩管理</a> <span class="arrow"></span>
        <ul id="userManage">
          <li class="current" th:if="${session.user.manager == '是'}"><a th:href="@{/institution/rewardAdd}">新增奖惩</a></li>
          <!--class="current"选中的黄字特效-->
          <li><a th:href="@{/institution/rewardChange}">员工奖惩列表</a></li>
         
        </ul>
      </li>
     

      <!--<li><a href="widgets.html" class="widgets">Widgets</a></li>
      <li><a href="calendar.html" class="calendar">Calendar</a></li>
      <li><a href="support.html" class="support">Customer Support</a></li>
      <li><a href="typography.html" class="typo">Typography</a></li>
      <li><a href="tables.html" class="tables">Tables</a></li>
      <li><a href="buttons.html" class="buttons">Buttons &amp; Icons</a></li>-->
        <li><a href="#support" class="error">技术支持</a> <span class="arrow"></span>
            <ul id="support">
                <li><a href="../teamName.html" th:href="@{/teamName}">技术团队</a></li>
                <li><a href="../teamCantact.html" th:href="@{/teamCantact}">联系我们</a></li>

            </ul>
        </li>
      <!--<li><a href="#addons" class="addons">Addons</a> <span class="arrow"></span>
        <ul id="addons">
          <li><a href="newsfeed.html">News Feed</a></li>
          <li><a href="profile.html">Profile Page</a></li>
          <li><a href="productlist.html">Product List</a></li>
          <li><a href="photo.html">Photo/Video Sharing</a></li>
          <li><a href="gallery.html">Gallery</a></li>
          <li><a href="invoice.html">Invoice</a></li>
        </ul>
      </li>-->
    </ul>
    <a class="togglemenu"></a> <br />
    <br />
  </div>
  <!--leftmenu-->
  
  <div class="centercontent">
    <div class="pageheader">
      <h1 class="pagetitle">新增奖惩</h1>
      <span class="pagedesc">请为员工添加奖惩信息</span> 
      <!--<ul class="hornav">
        <li class="current"><a href="#basicform">Basic</a></li>
        <li><a href="#validation">Validation</a></li>
      </ul>--> 
    </div>
    <!--pageheader-->
    
    <div id="contentwrapper" class="contentwrapper">
      <div id="basicform" class="subcontent"> 
        <div class="contenttitle2">
          <!--<h3>Form Style 1</h3>-->
        </div>
        <!--contenttitle-->
<!--奖惩信息插入表-->
          <form th:action="@{/institution/rewardAdd}" class="stdform" method="post" novalidate>
              <p>
                <label for="iName">输入奖赏名称：</label>
                <span class="field">
            <input type="text" name="iName" class="mediuminput"
                   id="iName"
                   th:value="${institution !=null ? institution.iName:''}" />
            </span>
                <label th:type="hidden"></label>
                <span th:text="${errorMessages != null and  errorMessages.containsKey('iName')? errorMessages.iName: ''}">错误信息</span>
              </p>

              <p>
                  <label for="iReason">输入奖赏原因：</label>
                  <span class="field">
            <input type="text" name="iReason" class="mediuminput"
                   id="iReason"
                   th:value="${institution !=null ? institution.iReason:''}" />
            </span>
                <label th:type="hidden"></label>
                <span th:text="${errorMessages != null and  errorMessages.containsKey('iReason')? errorMessages.iReason: ''}">错误信息</span>
              </p>

              <p>
                  <label for="iExplain">输入奖赏解释：</label>
                  <span class="field">
            <input type="text" name="iExplain" class="mediuminput"
                   id="iExplain"
                   th:value="${institution !=null ? institution.iExplain:''}" />
            </span>
                <label th:type="hidden"></label>
                <span th:text="${errorMessages != null and  errorMessages.containsKey('iExplain')? errorMessages.iExplain: ''}">错误信息</span>
              </p>

              <p>
                  <label for="iBuildTime">输入奖赏时间：</label>
                  <span class="field">
            <input type="text" name="iBuildTime" class="mediuminput"
                   id="iBuildTime"
                   th:value="${institution !=null ? institution.iBuildTime:''}" />
            </span>
              </p>

              <p class="stdformbutton">
                  <button type="submit" class="submit radius2">确认添加</button>
                  <input type="reset" class="reset radius2" value="重置" />
              </p>
        </form>
        <br />
        <br />
      </div>
      <!--subcontent-->
      
    </div>
    <!--contentwrapper--> 
    
  </div>
  <!-- centercontent --> 
  
</div>
<!--bodywrapper-->
<script>
    $('form.stdform').submit(function (event) {
        //调用表单对象的验证方法，如果验证方法返回true 说明所有的表单域都填写正确。否则返回false
        if(this.checkValidity() === false){
            $(this).addClass('was-validated')
            return false;
        }
        return true;
    })

</script>
</body>
</html>